package com.ruoyi.car.service.parts.impl;

import com.car.pojo.TbPartBatteryPackInformation;
import com.ruoyi.car.mapper.parts.TbPartBatteryPackInformationMapper;
import com.ruoyi.car.service.parts.ITbPartBatteryPackInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbPartBatteryPackInformationServiceImpl implements ITbPartBatteryPackInformationService {

    @Autowired
    private TbPartBatteryPackInformationMapper tbPartBatteryPackInformationMapper;

    @Override
    public TbPartBatteryPackInformation findOne(Long id) {
        return tbPartBatteryPackInformationMapper.selectById(id);
    }

    @Override
    public List<TbPartBatteryPackInformation> findAll() {
        return tbPartBatteryPackInformationMapper.selectList(null);
    }
}
